  <script type="text/javascript" src="/viventura/MDCostos/js/jquery-1.4.2.min.js"></script>
        <script language="JavaScript" type="text/JavaScript">
            $(document).ready(function(){
             $("#type").change(function(event){
                var id = $("#type").find(':selected').val();
                
                $("#type1").load('genera-select.php?id='+id);
                
             });
       });
</script>      

        
<?php

/**
 * @author christian
 * @copyright 2011
 */

//echo "registrar ....";
//echo getcwd();
//echo basename(getcwd());
$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDCostos";
include_once("$ruta/conf/CConfig.php");
include_once("$ruta/elements/head.tpl");
include_once("$ruta/MDCostosGeneral/CDrawPageReg.php");


$action="CTourEdit.php";$name="formulario_registro";$method="post";$NAME="REGISTRO"; //solo paso default, el codigo lo recogo en CTourEdit
CDrawPageReg::getInstance()->DrawHead($action,$name,$method,$NAME);

$operadores = array("Operador"=>"idOpe","Nombre del Operador"=>"NamOpe");
CDrawPageReg::getInstance()->DrawSelect("operador",$operadores,"El Operador seleccionado es");
?>
<select name="type1" id="type1"></select>
<?php
CDrawPageReg::getInstance()->DrawSubmmit("Seleccionar paquete");
CDrawPageReg::getInstance()->DrawFoot();
include_once("$ruta/elements/foot.tpl");


?>

 